
<footer id="footer">
    <p>Optilodging ® 2013</p>
</footer>
<div id="mensajesUsuario" class="<?php
if (!isset($_SESSION["mensaje"]["contenido"]) || $_SESSION["mensaje"]["contenido"] == "") {
    echo "hide";
}
?>">
    <div id="contenidoMensajeUsuario" class="<?php
    if (isset($_SESSION["mensaje"]["contenido"]) && $_SESSION["mensaje"]["contenido"] != "") {
        echo $_SESSION["mensaje"]["tipo"];
    }
    ?>">
             <?php
             if (isset($_SESSION["mensaje"]["contenido"]) && $_SESSION["mensaje"]["contenido"] != "") {
                 echo $_SESSION["mensaje"]["contenido"];
                 $_SESSION["mensaje"]["contenido"] = "";
             }
             ?>
    </div>
</div>
<div id="coverDisplay">
    <img id="imgLoading" src="<?= base_url() ?>public/images/loading.gif">
</div>
<a title="Preguntas frecuentes" href=" http://optilodging.wordpress.com/preguntas-frecuentes/" target="_blank" id="feedAyuda">?</a>
<div id="feedback">
    <div id="contenidoFeedback">
        <div class="row-fluid">
            <input id="nombreFeedback" type="text" placeholder="Tu nombre">
        </div>
        <div class="row-fluid">
            <textarea id="mensajeFeedback" rows="4" placeholder="Tus observaciones nos permiten brindarte un mejor servicio. Gracias por escribirnos"></textarea>
        </div>
        <div class="row-fluid">
            <button id="enviarFeedBack" class="btn btn-success">Enviar</button>
        </div>
    </div>
    <div id="nameFeed"><div id="textoFeed">FEEDBACK</div></div>
</div>
<div id="miToolTip" class="tooltip fade bottom in hide">
    <div class="tooltip-arrow"></div>
    <div id="contenidoTooltip" class="tooltip-inner"></div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?= base_url() ?>public/lib/jQuery/jquery-1.10.1.min.js"><\/script>')</script>

<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<script>window.jQuery || document.write('<script src="<?= base_url() ?>public/lib/jQuery/jquery-ui-1.10.2.custom.min.js"><\/script>')</script>

<script src="<?= base_url() ?>public/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="<?= base_url() ?>public/js/optilodging.js"></script>
<?php
if ($_SESSION['establecimiento']['colombia']) {
    echo "<script> esDeColombia=true;   </script>";
} else {
    echo "<script> esDeColombia=false;   </script>";
}

if ($tab == "calendario") {
    echo "<script>
         var today='$fechaCalendario';
             today=new Date(today);
             var categoriaActiva='$categoriaActiva';
         </script>";
    echo "<script src='" . base_url() . "public/js/calendario/calendario.js'></script>";
    echo "<script src='" . base_url() . "public/js/calendario/modales.js'></script>";
} else if ($tab == "detallesReserva") {
    echo "<script src='" . base_url() . "public/js/detallesReserva.js'></script>";
    echo "<script src='" . base_url() . "public/js/consumos.js'></script>";
} else if ($tab == "facturacion")
    echo "<script src='" . base_url() . "public/js/facturacion.js'></script>
        <script src='" . base_url() . "public/js/ajustes.js'></script>";
else if ($tab == "huespedes")
    echo "<script src='" . base_url() . "public/js/huespedes.js'></script>";
else if ($tab == "consumos")
    echo "<script src='" . base_url() . "public/js/consumos.js'></script>";
else if ($tab == "escritorio")
    echo "<script src='" . base_url() . "public/js/escritorio.js'></script>";
else if ($tab == "habitaciones")
    echo "<script src='" . base_url() . "public/js/habitaciones.js'></script>";
else if ($tab == "temporadas")
    echo "<script src='" . base_url() . "public/js/temporadas.js'></script>";
else if ($tab == "tarifas")
    echo "<script src='" . base_url() . "public/js/tarifas.js'></script>";
else if ($tab == "registrarVenta")
    echo "<script src='" . base_url() . "public/js/registrarVenta.js'></script>";
else if ($tab == "registrarVenta")
    echo "<script src='" . base_url() . "public/js/registrarPago.js'></script>";
else if ($tab == "informacionComercial")
    echo "<script src='" . base_url() . "public/js/informacionComercial.js'></script>";
else if ($tab == "informacionGeneral")
    echo "<script src='" . base_url() . "public/js/informacionGeneral.js'></script>";
else if ($tab == "pruebas")
    echo "<script src='" . base_url() . "public/js/pruebas.js'></script>";
else if ($tab == "pruebas2")
    echo "<script src='" . base_url() . "public/js/pruebas2.js'></script>";
else if ($tab == "usuarios")
    echo "<script src='" . base_url() . "public/js/usuarios.js'></script>";
else if ($tab == "licencia")
    echo "<script src='" . base_url() . "public/js/licencia.js'></script>";
else if ($tab == "resumendiario")
    echo "<script src='" . base_url() . "public/js/resumenDiario.js'></script>";
else if ($tab == "productos")
    echo "<script src='" . base_url() . "public/js/productos.js'></script>";
else if ($tab == "clientes")
    echo "<script src='" . base_url() . "public/js/clientes.js'></script>";
else if ($tab == "costos")
    echo "<script src='" . base_url() . "public/js/costos.js'></script>";
else if ($tab == "cuenta")
    echo "<script src='" . base_url() . "public/js/cuenta.js'></script>";
else if ($tab == "historialVentas")
    echo "<script src='" . base_url() . "public/js/historialVentas.js'></script>";
else if ($tab == "reporteMigracion")
    echo "<script src='" . base_url() . "public/js/reporteMigracion.js'></script>";
else if ($tab == "historialCompras")
    echo "<script src='" . base_url() . "public/js/historialCompras.js'></script>";
else if ($tab == "costosGastos")
    echo "<script src='" . base_url() . "public/js/costosGastos.js'></script>";
else if ($tab == "inventarioProductos")
    echo "<script src='" . base_url() . "public/js/inventarioProductos.js'></script>";
else if ($tab == "reporteIngresosEgresos")
    echo "<script src='" . base_url() . "public/js/reporteIngresosEgresos.js'></script>";
else if ($tab == "reporteOcupacion")
    echo "<script src='" . base_url() . "public/js/reporteOcupacion.js'></script>";
else if ($tab == "reservas")
    echo "<script src='" . base_url() . "public/js/reservas.js'></script>";
else if ($tab == "reporteHospedajes")
    echo "<script src='" . base_url() . "public/js/reporteHospedajes.js'></script>";
else if ($tab == "cuentasporcobrar")
    echo "<script src='" . base_url() . "public/js/cuentasporcobrar.js'></script>";
else if ($tab == "cuentasporcobrarextras")
    echo "<script src='" . base_url() . "public/js/cuentasporcobrarextras.js'></script>";
else if ($tab == "ingresostotales")
    echo "<script src='" . base_url() . "public/js/ingresostotales.js'></script>";
else if ($tab == "ingresostotalesventasextra")
    echo "<script src='" . base_url() . "public/js/ingresostotalesventasextra.js'></script>";
else if ($tab == "ingresosreserva")
    echo "<script src='" . base_url() . "public/js/ingresosreserva.js'></script>";
else if ($tab == "egresostotales")
    echo "<script src='" . base_url() . "public/js/egresostotales.js'></script>";
else if ($tab == "egresostotalesgastos")
    echo "<script src='" . base_url() . "public/js/egresostotalesgastos.js'></script>";
else if ($tab == "ocupacion")
    echo "<script src='" . base_url() . "public/js/ocupacion.js'></script>";
else if ($tab == "pagar")
    echo "<script src='" . base_url() . "public/js/pagar.js'></script>";
else if ($tab == "pagarNoEstandar")
    echo "<script src='" . base_url() . "public/js/pagarNoEstandar.js'></script>";
else if ($tab == "canales")
    echo "<script src='" . base_url() . "public/js/canales.js'></script>";
else if ($tab == "otroscanales")
    echo "<script src='" . base_url() . "public/js/otroscanales.js'></script>";
else if ($tab == "productosyservicios")
    echo "<script src='" . base_url() . "public/js/productosyservicios.js'></script>";
else if ($tab == "productosyserviciosver")
    echo "<script src='" . base_url() . "public/js/productosyserviciosver.js'></script>";
else if ($tab == "motor")
    echo "<script src='" . base_url() . "public/js/motor.js'></script>";
else if ($tab == "reportedecaja")
    echo "<script src='" . base_url() . "public/js/reportedecaja.js'></script>";
?>
</body>
</html>
<script>
            (function(i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r;
                i[r] = i[r] || function() {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date();
                a = s.createElement(o),
                        m = s.getElementsByTagName(o)[0];
                a.async = 1;
                a.src = g;
                m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

    ga('create', 'UA-42717766-2', 'optilodging.com');
    ga('send', 'pageview');

</script>